import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsNotEmpty } from 'class-validator';

export class RegisterDto {
  
  @ApiProperty({
    default: '1426591905@qq.com',
  })
  @IsEmail()
  @IsNotEmpty()
  eMail: string;

  @IsNotEmpty()
  @ApiProperty({
    default: '123456',
  })
  passWord: string;

  @IsNotEmpty()
  @ApiProperty({
    default: '张三',
  })
  cetName: string;

  @ApiProperty({
    default: '1234',
  })
  @IsNotEmpty()
  code: string;
}
